﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
//using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Client
{
    public partial class Login : Form
    {
        private SetServerIPAddress setServerIP = null;
        public event SetServerIPAddressEventHandler OnSetServerIPAddress = null;
        public Login()
        {
            InitializeComponent();
            this.setServerIP = new SetServerIPAddress();
            this.setServerIP.OnSetServerIPAddress += new SetServerIPAddressEventHandler(setServerIP_OnSetServerIPAddress);
        }

        void setServerIP_OnSetServerIPAddress(object sender, SetServerIPAddressEventArgs e)
        {
            if (this.OnSetServerIPAddress != null)
            {
                this.OnSetServerIPAddress(this, new SetServerIPAddressEventArgs(e.IpAddress));
            }
        }

        private void btnLogin_Click(object sender, EventArgs e)
        {
           
                this.setServerIP.Show();
                this.Visible = false;
            
        }
    }
}
